﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame1
{
    class Camera
    {
        public Matrix view;
        public Matrix projection;

        private GraphicsDevice device;

        public Camera(GraphicsDevice gdevice)
        {
            device = gdevice;
            view = Matrix.CreateLookAt(
                new Vector3(0, 42, 12), 
                Vector3.Zero, 
                Vector3.Up);
            projection = Matrix.CreatePerspectiveFieldOfView(
                MathHelper.ToRadians(45), 
                gdevice.Viewport.AspectRatio, 
                0.1f, 
                50);
        }
    }
}
